<?php
//ini_set("display_errors","Off");
include_once("../settings.php");
if($_SESSION["username2"]==""){
echo "<script>alert('您沒有訪問權限，請先登入!');window.open('index.php','_top');</script>";
}

if($_SESSION["username2"]!="522229198307133216" ){

if($_SESSION["username2"]!="" ){


$sql=mysql_query("select * from guanli where username = '".$_SESSION["username2"]."'   ");
$result=mysql_fetch_array($sql);
if ($result==false){
	echo "<script>alert('您沒有訪問權限，請先登入!');window.open('index.php','_top');</script>";
}
}

}


?>

